<template>
  <div>
    <div >
      <div style="border-bottom:1px solid #d5d6d7;background-color: #eceff4;">
        <el-radio-group v-model="isCollapse" style="margin-bottom:0px;">
          <el-radio-button :label="xianshi" class="bbtn">
            <div class="btn"><i class="el-icon-menu"  @click="toggle()"></i></div>
          </el-radio-button>
        </el-radio-group>
      </div>
      <el-menu default-active="1-4-1" class="el-menu-vertical-demo" @open="handleOpen" @close="handleClose" :collapse="isCollapse">
        <el-submenu :index="index+''" v-for="(item,index) in navData" :key="index">
          <template slot="title">
            <i :class="item.icon"></i>
            <span slot="title">{{item.name}}</span>
          </template>
          <el-menu-item v-for="child in item.children" :key="child.name" :index="child.path">
            {{child.name}}
          </el-menu-item>
        </el-submenu>
      </el-menu>
    </div>
  </div>
 </template>

<script>
  import aside from './aside'
  export default {
    data() {
      return {
        isCollapse: true,
        qqq:true,
        bbb:false,
        xianshi:false,
        navData: aside
      };
    },
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      },
      toggle(){
        this.xianshi=!this.xianshi
      },
      qq(){
        this.qqq=false;
        this.bbb=true
      },
      bb(){
        this.qqq=true;
        this.bbb=false
      }
    }
  }
</script>

<style lang="less">
  .bbtn{
    margin-left:0px !important;
    margin-top:0px !important;
  }
   .btn{
    width: 100%;
    height: 100%;
  }
  .el-radio-button:first-child .el-radio-button__inner {
    border-top:0px solid #d5d6d7;
    border-left-width: 0px;
    outline: 0;
    -webkit-box-shadow: none!important;
    box-shadow: none!important;
  }
  .el-radio-button__inner {
    line-height: 1;
    white-space: nowrap;
    background:#eceff4;
    border:0;
    font-weight: 500;
    border-left: 0;
    color: #606266;
    -webkit-appearance: none;
    text-align: center;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    cursor: pointer;
    -webkit-transition: all .3s cubic-bezier(.645,.045,.355,1);
    transition: all .3s cubic-bezier(.645,.045,.355,1);
    padding: 10px 10px;
    font-size:24px;
    border-radius: 0;
  }
  .el-radio-button, .el-radio-button__inner {
    display: inline-block;
    position: relative;
    outline: 0;
  }
  .el-radio-button__inner, .el-switch__core {
    -webkit-box-sizing: border-box;
    vertical-align: middle;
  }
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width:200px;
    min-height: 400px;
  }
  .el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 200px;
    min-height: 400px;
  }
  .el-menu-item, .el-submenu__title {
    height:45px!important;
    line-height: 45px!important;
  }
  .el-submenu__title{
  }

  .el-menu-vertical-demo > li:first-child{
  }
  .el-menu-item.is-active{
    background-color: #00c1de !important;
    outline: 0;
    box-shadow:none !important;
  }
  .el-menu-item{
    background-color: #eceff4 !important;
    border-bottom:2px solid #ffffff;
    border-right:1px solid #ffffff;
    padding: 1px;
    color:black !important;
  }
  .el-menu{
    border-right: none;
  }
  .main .left[data-v-48974df6] {
    /*width:200px;*/
    background-color: #fff;
    overflow-y: scroll;
    overflow-x: hidden;
  }
  .my_menu{
    position: relative;
    background: url("../../assets/img/bg2.jpg") no-repeat !important;
    z-index: 1000000;
  }
</style>
